<?php
class Grid extends BaseController_Controller {
	
	public function __construct()
	{			
			parent::__construct();					
			$this->load->library('sys/sysrole');
			$this->load->library('sys/sysuser');
	}	
	

	function roles($var='')
	{	
		$cls=new SysRole($var);
		if($var=='')
			echo json_encode($cls->Inquiry());
			//echo json_encode($cls->getTable());
		else
			echo json_encode($cls);			
	}

	function users($var='')
	{		
		$cls=new SysUser($var);
		if($var=='')
		echo json_encode($cls->get_user());
		else
		echo json_encode($cls);			
	}

} 
